#ifndef IDBINDER_H
#define IDBINDER_H

#include "basepropertybinder.h"

//用于将source对象其下的子对象的属性同步给target对象其下同id的子对象

class IdBinder:public BasePropertyBinder
{
    Q_OBJECT

    Q_PROPERTY(QStringList propertys READ propertys WRITE setPropertys NOTIFY propertysChanged FINAL)
public:

    IdBinder(QObject* parent = NULL);
    ~IdBinder();

    QStringList propertys() const;
    void setPropertys(const QStringList &newProperty);

protected:
    BindDataList generateBindList() override;

signals:
    void propertysChanged();

private:
    QStringList m_propertys = {};
};


#endif
